body {
	background-color:#d0e4fe;
}

h1 {
}
h2 {
}
h3 {
}
h4 {
}
h5 {
}
h6 {
}
p {
}

/*开关按钮*/
.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}
.switch input { 
	opacity: 0;
	width: 0;
	height: 0;
}
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}
.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}
input:checked + .slider {
	background-color: #2196F3;
}
input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}
.slider.round {
	border-radius: 34px;
}
.slider.round:before {
	border-radius: 50%;
}

/*虚拟操纵杆*/
#joystick-container {
	width: 200px;
	height: 200px;
	border: 3px solid #ddd;
	border-radius: 50%;
	position: relative;
	margin-left: -50px;
	margin-right: 50px;
	display: inline-block;
}
#joystick {
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	background-color: green;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	position: absolute;
	pointer-events: none; /* 防止摇杆本身阻止鼠标事件 */
}

/*滑动刻度尺*/
.vruler {
	width: 20px;
	height: 360px;
	position: relative;
	margin-left: 20px;
	text-align: right;
	writing-mode: vertical-rl; /* 从上到下，从右到左 */
	transform: rotate(180deg);
}
.vruler-ptr {
	width: 0px;
	height: 0px;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 10px solid red;
	transform: rotate(-90deg);
}
.vruler-ptr-value {
	font-size: 50%;
	display: flex;
	margin-top: 35px;
	margin-left: -5px;
	transform: rotate(180deg);
}
.ruler {
	width: 360px;
	height: 20px;
	position: relative;
	margin-left: 40px;
	letter-spacing: 0px;
	text-align: justify;
}
.ruler-ptr {
	width: 0px;
	height: 0px;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 10px solid red;
}
.ruler-ptr-value {
	font-size: 50%;
	display: flex;
	margin-top: 10px;
	margin-left: -5px;
}

